//
//  VisitorTableTableViewController.swift
//  TYBlog
//
//  Created by 杨远鹏 on 16/9/23.
//  Copyright © 2016年 TY. All rights reserved.
//

import UIKit

class VisitorTableViewController: UITableViewController {
    
    private var userLogon = false
    
    var visitorView: VisitorView?

    override func loadView() {
        userLogon ? super.loadView() : setUpVisitorView()
    }
    
    override func viewDidAppear(animated: Bool) {
        super.viewDidAppear(animated)
        
        print(visitorView)
    }
    
    private func setUpVisitorView(){
//        view = VisitorView()
        visitorView = VisitorView()
        view = visitorView
    }
}
